#ifndef COMPLEX_H
#define COMPLEX_H

#include "complexui.h"
#include "complexInterface.h"

#include <QObject>

class Complex : public QObject, public ComplexInterface
{
    Q_OBJECT
    Q_INTERFACES(ComplexInterface)
    Q_PLUGIN_METADATA(IID "com.example.ComplexInterface/1.0")

public:
    QWidget* createWidget(const QString& type, const QString& level, const QString& humidity,
                          const QString& pm25, const QString& quality, const QString& tips) override;

private:
    class ComplexUI* complexUI = nullptr;
};


#endif // COMPLEX_H
